/************************* 版权声明 *********************************
 * 
 * 版权所有：meymey
 * 
 ************************* 版本声明 *********************************
 *@since jdk1.5
 *@version 0.6
 ************************* 变更记录 *********************************
 *
 * 创建者：biqiang Email:biqiang@winmess.com   创建日期：2010-8-30
 * 创建记录：创建类结构。
 *
 ************************* 类描述 *********************************×
 *活动的投票记录
 ************************* To  Do *********************************
 *
 ************************* 随   笔 ***********************************
 *
 ******************************************************************
 */
package com.realgodo.site.entity.site;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.realgodo.site.entity.IdEntity;

@Entity
@Table(name = "event_vote_record")
public class EventVoteRecord extends IdEntity {

	private static final long serialVersionUID = -3868469839725358902L;

	/** Space.id */
	private Long voterId;

	private EventJoinerRecord joinerRecord;

	private Date voteTime;

	@Column(name = "voter_id")
	public Long getVoterId() {
		return voterId;
	}

	public void setVoterId(Long voterId) {
		this.voterId = voterId;
	}

	@ManyToOne
	@JoinColumn(name = "joiner_record_id", referencedColumnName = "id", nullable = false)
	public EventJoinerRecord getJoinerRecord() {
		return joinerRecord;
	}

	public void setJoinerRecord(EventJoinerRecord joinerRecord) {
		this.joinerRecord = joinerRecord;
	}

	@Column(name = "vote_time")
	@Temporal(TemporalType.TIMESTAMP)
	public Date getVoteTime() {
		return voteTime;
	}

	public void setVoteTime(Date voteTime) {
		this.voteTime = voteTime;
	}

}
